import request from '@/router/axios';
import { baseUrl } from '@/config/env';
export const upload=(data)=>{
    const formData = new FormData();
    formData.append('file', data);
    formData.append('type', 'image');
    return  request({
        url: baseUrl + '/v1/file/upload/',
        method: 'POST',
        headers: {
            'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundarynl6gT1BKdPWIejNq'
        },
        data:formData
    });
};